package com.wn.production;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.amqp.rabbit.annotation.EnableRabbit;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.transaction.annotation.EnableTransactionManagement;

@EnableTransactionManagement //启动事务控制
@EnableRabbit //启用消息队列
//@EnableDiscoveryClient//启用nacos
//@EnableFeignClients//启用openfeign,不启用将导致openfeign的接口生成bean失败
@SpringBootApplication
@MapperScan(basePackages = "com.wn.production.mapper")
public class ProductionApplication {
    public static void main(String[] args) {
        SpringApplication.run(ProductionApplication.class, args);
    }
}
